package com.kaiwukj.android.ufamily.mvp.http.entity.base;

import java.io.Serializable;

/**
 * 解析基类,主要处理code和desc
 *
 * @param <E>
 * @author huiwings
 * @date 2019-11-8
 */
public abstract class ApiResp<E> implements Serializable {
    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * 必须重写
     *
     * @return 具体所需数据
     */
    public abstract E getData();
}
